<p><label for="event_title"><%= link_to event.title, event_path(event) %></label></p>
<%= image_tag(event.pic.public_filename(:thumb), :style=> "float:right;margin:0 30px 0 10px") if event.pic %>
<p><span class="tip">开始时间：</span><%= show_datetime event.start_at, false %><br />
   <span class="tip">结束时间：</span><%= show_datetime event.end_at, false %><br />
   <span class="tip">活动地点：</span><%= h event.location %><br />
   <span class="tip">分类：</span><%= Event.categories[event.category] %><br />
   <span class="tip">发布人：</span><%= link_to event.submitor.login, user_path(event.submitor.id) %><br />
   <% unless event.school_id.blank? -%>
    <span class="tip">要去的学校：</span><%= link_to event.school.title, school_url(event.school_id) %><br />
   <% end -%>
   <span class="tip">参加人数：</span><%= event.participators.count %>
</p>
<hr />